<?php

require FCPATH . '/application/controllers/frontend.php';

class Employee extends Frontend {

    public function __construct() {
	parent::__construct();
    }
    
    public function index(){
	$this->load->model('employee_model');
	$this->load_js('frontend_employee_index');
	$this->load_css('frontend_employee_index');
	
	$lang = $this->get_language();
	
	$columns = array(
	    'id',
		array('name_'.$lang,'name'),
	    array('title_'.$lang,'title'),
	    array('n.name','image_name')
	);
	
	
	$this->rend('employee_index',array(
	    'records' => $this->employee_model->records($columns)
	));
    }
    
}